<?php

class hdms_adminMainController extends FoundryControllerInterface
{


	/**
	 * init()
	 *
	 * init() is called in place of the __construct() method used by the
	 * FoundryControllerInterface super class
	 * This function will be called immediately after the __construct method
	 *
	 */ 
	public function init()
	{
	
	
	}
	
	public function main()
	{
	
		return true;
	}
	
	public function authError()
	{
		$session = FoundryRegistry::get( 'USER_session' );
		$id = $session->id();
		
		$mUser = FoundryController::model( 'user' );
		$user = $mUser->find( '*sess_id = :sid', array( ':sid' => $id ) );

		$mask = FoundryRegistry::get( 'moduleMask' );

		return array( 'user' => $user, 'mask' => $mask );
	}

}

?>